﻿using Gavel.ModLink.ViewModel;

namespace Gavel.ModLink.Applications;

/// <summary>
/// 主窗口交互逻辑
/// </summary>
public partial class MainWindow
{
    /// <summary>
    /// 默认构造
    /// </summary>
    public MainWindow()
    {
        InitializeComponent();
        OptionsViewModel optionsViewModel = (OptionsViewModel)OptionsView.DataContext;
        RegisterView.OnEditRegisterValueEvent += value => RegisterWriteView.ShowWriteDialog(value, optionsViewModel);
    }
}